package router

import (
	v1 "ksirGo/controller/v1"
	"ksirGo/middleware"

	"github.com/gin-gonic/gin"
)

func UserGroup(Router *gin.RouterGroup) {
	var userGroup = Router.Group("/user")

	userGroup.POST("/register", v1.Register)
	userGroup.POST("/loginByPassword", v1.LoginByPassword)
	userGroup.GET("/userList", v1.UserList)

	userGroup.GET("/userInfo", middleware.JWTAuthMiddleware(), v1.UserInfo)
	userGroup.POST("/avatarUpload", middleware.JWTAuthMiddleware(), v1.AvatarUpload)
}
